package com.diamond.webservice;

import com.diamond.webservice.entity.JsEcAsyn;
import com.diamond.webservice.schedule.TransmissionSchedule;
import com.diamond.webservice.service.JsEcAsynService;
import com.diamond.webservice.service.TransmissionService;
import com.diamond.webservice.util.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
@MapperScan(basePackages = {"com.diamond.webservice.mapper"})
public class WebServiceApplication {
    public static void main(String[] args) {
        // 1、初始化容器
        SpringApplication.run(WebServiceApplication.class, args);
//        // 2、获取注册到容器中的bean
//        ApplicationContext applicationContext = SpringContextUtil.getApplicationContext();
//        TransmissionSchedule service = applicationContext.getBean(TransmissionSchedule.class);
//        // 3、调用数据每日同步任务
//        service.dailySyncTasks();
    }
}
